# -*- coding: utf-8 -*-
"""
Created on Tue Jan 11 08:20:31 2022

@author: 高雪峰  Alex GAO
"""
import PySimpleGUI as sg

tableDate = [[1, 2, 2, 'D921017401', 905120100008405],
             ]
tableHeaders = ['wid', '栏号', '机器号', '耳号', '电子耳牌号']
layout = [
    [sg.Button("检查输出", key='-checkVlues-')],
    [sg.Table(tableDate, headings=tableHeaders, justification="left", key="-tableFCRInfo-"
              , num_rows=50
              , select_mode='none'
              , auto_size_columns=True
              )]
]

window = sg.Window("生产导出文件", layout=layout)

while True:
    Event, Value = window.read()

    if Event in (None, "Exit"):
        break

    if Event == '-checkVlues-':
        sg.Print(Value)

window.close()